<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<link href="/bms/css/bms.css" rel="stylesheet" type="text/css" />
		<title>Insert title here</title>
	</head>
	<body>
	#{newBlog.blogSaved}
		<h:form>
			<table>
				<caption>New Blog</caption>
				<tr>
					<th>Name</th>
					<td>
						<h:inputText value="#{newBlog.blog.name}" disabled="#{newBlog.blogSaved}"></h:inputText>
					</td>
				</tr>
				<tr>
					<th>Description</th>
					<td>
						<h:inputTextarea value="#{newBlog.blog.description}" disabled="#{newBlog.blogSaved}"></h:inputTextarea>					
					</td>
				</tr>
				<tr>
					<th></th>
					<td>
						<h:commandButton action="#{newBlog.saveBlog}" value="Save"></h:commandButton>
					</td>
				</tr>
			</table>
			<h:messages>
			</h:messages>
		</h:form>
	</body>
</html>